import { createRouter, createWebHistory } from 'vue-router'

// 导入组件
import FirstView from '@/FirstView.vue'
import LoginView from '@/LoginView.vue'
import RegisterView from '@/RegisterView.vue'
import DoctorAnswer from "@/DoctorAnswer.vue";
import FirstView1 from "@/FirstView1.vue";


const routes = [
    { path: '/', component: LoginView },
    {path: '/register', component: RegisterView},
    { path: '/FirstView', component: FirstView },
    { path: '/doctorAnswer', component: DoctorAnswer },
    { path: '/FirstView1', component: FirstView1 },
]

// 创建路由实例
const router = createRouter({
    history: createWebHistory(),
    routes //路由关系
})

// 导出路由实例
export default router


